package file;

import cn.hutool.core.io.FileUtil;

import java.io.File;

public class FileTest {
    public static void main(String[] args) {
        File file1 = new File("D:\\file\\test1");
        File file2 = new File("D:\\file\\test2");

        boolean b = file1.renameTo(file2);
        System.out.println(b);
        // FileUtil.
    }

}
